package fun.barryhome.ebean.encrypt;

import io.ebean.config.EncryptKey;

/**
 * Created on 2021/6/6 8:56 上午
 *
 * @author barry
 * Description:
 */
public class BasicEncryptKey implements EncryptKey {

    private String tableName;
    private String columnName;
    private String key = "0123456";

    public BasicEncryptKey(String tableName, String columnName){
        this.tableName = tableName;
        this.columnName = columnName;
    }

    /**
     * Return the string key value.
     */
    @Override
    public String getStringValue() {
        return tableName.concat(columnName).concat(key);
    }
}
